window.shootPeople = window.shootPeople || {};
shootPeople.ArrowManager=function(){
	var s = this;
	annie.Sprite.call(s);
	/*_a2x_need_start*//*_a2x_need_end*/
	annie.initRes(s,"shootPeople","ArrowManager");
};
A2xExtend(shootPeople.ArrowManager,annie.Sprite);
shootPeople.ArrowManager.arrowPool = [];//箭头池
/**
 * 获取箭头
 * @param arrow
 */
shootPeople.ArrowManager.getArrow = function () {
    var s = this,
        arrow;
    if(s.arrowPool.length>0){
        arrow =  s.arrowPool.shift();
    }else{
        arrow = new shootPeople.Arrow();
    }
    return arrow;
};
/**
 * 箭头回收
 * @param callBack
 */
shootPeople.ArrowManager.recoveryBullet = function (arrow) {
    var s = this;
    if (!arrow) {
        throw new Error('bullet参数不能为空');
    }
    arrow.gotoAndStop(1);
    s.arrowPool.push(arrow);
};
